package com.jiuli.liping.vo;

import java.util.Collections;
import java.util.List;

public class HrmResource implements Comparable<HrmResource>{
    private int id;
    private String loginid;
    private String lastname ;
    private int departmentid ;
    private int subcompanyid1;
    private String pinyinlastname;
    private String firstname;
    private List<HrmResource> hrmResourceList;

    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public List<HrmResource> getHrmResourceList() {
        return hrmResourceList;
    }

    public void setHrmResourceList(List<HrmResource> hrmResourceList) {
        this.hrmResourceList = hrmResourceList;
    }

    public String getPinyinlastname() {
        return pinyinlastname;
    }

    public void setPinyinlastname(String pinyinlastname) {
        this.pinyinlastname = pinyinlastname;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLoginid() {
        return loginid;
    }

    public void setLoginid(String loginid) {
        this.loginid = loginid;
    }

    public String getLastname() {
        return lastname;
    }

    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    public int getDepartmentid() {
        return departmentid;
    }

    public void setDepartmentid(int departmentid) {
        this.departmentid = departmentid;
    }

    public int getSubcompanyid1() {
        return subcompanyid1;
    }

    public void setSubcompanyid1(int subcompanyid1) {
        this.subcompanyid1 = subcompanyid1;
    }

    @Override
    public int compareTo(HrmResource hrmResource) {
        return this.getFirstname().compareTo(hrmResource.getFirstname());
    }
}
